package im.yagni.driveby.pool

import im.yagni.common.WebServer

case class InProcessApplicationController(name: String, port: Int, hostname: String = java.net.InetAddress.getLocalHost.getHostName) extends ApplicationController {
  val application = Application(name, port, hostname)

  beforeStart()
  val server = new WebServer(port, false)

  def beforeStart() {}
  def start() { server.start() }
  def hasStarted = true
  def stop() { }
}